<?php 
require_once __DIR__.'/Bootstrap.php';
	if(!UserService::isLogin())
	header("location:signin.php");
require_once __DIR__.'/classes/Controller.php';

$target=getFormValue('target');
$workingTemplate=Controller::execute($target);

$_page = new Templater(); 
$_page->load(__DIR__.'/templates/ApplicationFrame.html');
$_page->set("workingTemplate", $workingTemplate);
$_page->publish();